package cn.isjinhao.se.sql.grammar.statement;

import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.grammar.CurdStatement;

/**
 * @author 01395265
 * @date 2021/3/3
 */
public class Grouping extends CurdStatement {

    private CurdStatement curdStatement;

    public Grouping(CurdStatement curdStatement) {
        this.curdStatement = curdStatement;
    }

    public CurdStatement getSelectStatement() {
        return curdStatement;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitGrouping(this);
    }
}
